
#include "binary_tree.h"
#include <stdio.h>

int main()
{
	/*创建空树*/
    BSTREE *bstree = bstree_create();
    /*插入节点
     50 70 20 60 40 30 10 90 80
     */
	bstree_insert(bstree, 50);
	bstree_insert(bstree, 70);
	bstree_insert(bstree, 20);
	bstree_insert(bstree, 60);
	bstree_insert(bstree, 40);
	bstree_insert(bstree, 30);
	bstree_insert(bstree, 10);
	bstree_insert(bstree, 90);
	bstree_insert(bstree, 80);
	/* 打印以上树*/
    bstree_print(bstree);
	bstree_midtravel(bstree);
	bstree_pertravel(bstree);
	bstree_postravel(bstree);
	bstree_destroy(bstree);
	return 0;
}


